gusucode.com > LTE基带收发仿真系统matlab源码程序 > LTE baseband simulation/plot_data.m
function plot_data() % 绘图 误块率 吞吐量曲线 % Author: 程式小组(徐萌 张妙 张晓庆) % Date: 2010-07-11 % ========================================================== % QPSK load bler_and_th_mcs0.mat figure(1) semilogy(SNR,BLER,'-rs'),grid on hold on load bler_and_th_mcs1.mat figure(1) semilogy(SNR,BLER,'-mo'),grid on hold on load bler_and_th_mcs2.mat figure(1) semilogy(SNR,BLER,'-co'),grid on hold on load bler_and_th_mcs3.mat figure(1) semilogy(SNR,BLER,'-ro'),grid on hold on load bler_and_th_mcs4.mat figure(1) semilogy(SNR,BLER,'-go'),grid on hold on load bler_and_th_mcs5.mat figure(1) semilogy(SNR,BLER,'-bo'),grid on hold on load bler_and_th_mcs6.mat figure(1) semilogy(SNR,BLER,'-ko'),grid on hold on load bler_and_th_mcs7.mat figure(1) semilogy(SNR,BLER,'-rd'),grid on hold on load bler_and_th_mcs8.mat figure(1) semilogy(SNR,BLER,'-m*'),grid on hold on load bler_and_th_mcs9.mat figure(1) semilogy(SNR,BLER,'-c*'),grid on hold on legend('MCS0','MCS1','MCS2','MCS3','MCS4','MCS5','MCS6','MCS7','MCS8','MCS9') xlabel('SNR [dB]') ylabel('BLER') title('误块率曲线') % 16QAM load bler_and_th_mcs10.mat figure(3) semilogy(SNR,BLER,'-r*'),grid on hold on load bler_and_th_mcs11.mat figure(3) semilogy(SNR,BLER,'-g*'),grid on hold on load bler_and_th_mcs12.mat figure(3) semilogy(SNR,BLER,'-b*'),grid on hold on load bler_and_th_mcs13.mat figure(3) semilogy(SNR,BLER,'-k*'),grid on hold on load bler_and_th_mcs14.mat figure(3) semilogy(SNR,BLER,'-rp'),grid on hold on legend('MCS10','MCS11','MCS12','MCS13','MCS14') xlabel('SNR [dB]') ylabel('BLER') title('误块率曲线') %=== 吞吐量曲线 =========================== % QPSK load bler_and_th_mcs0.mat figure(2) plot(SNR,th,'-rs'),grid on hold on load bler_and_th_mcs1.mat figure(2) plot(SNR,th,'-mo'),grid on hold on load bler_and_th_mcs2.mat figure(2) plot(SNR,th,'-co'),grid on hold on load bler_and_th_mcs3.mat figure(2) plot(SNR,th,'-ro'),grid on hold on load bler_and_th_mcs4.mat figure(2) plot(SNR,th,'-go'),grid on hold on load bler_and_th_mcs5.mat figure(2) plot(SNR,th,'-bo'),grid on hold on load bler_and_th_mcs6.mat figure(2) plot(SNR,th,'-ko'),grid on hold on load bler_and_th_mcs7.mat figure(2) plot(SNR,th,'-r+'),grid on hold on load bler_and_th_mcs8.mat figure(2) plot(SNR,th,'-m*'),grid on hold on load bler_and_th_mcs9.mat figure(2) plot(SNR,th,'-c*'),grid on hold on legend('MCS0','MCS1','MCS2','MCS3','MCS4','MCS5','MCS6','MCS7','MCS8','MCS9') xlabel('SNR [dB]') ylabel('频谱效率') title('频谱效率曲线') % 16QAM load bler_and_th_mcs10.mat figure(4) plot(SNR,th,'-r*'),grid on hold on load bler_and_th_mcs11.mat figure(4) plot(SNR,th,'-g*'),grid on hold on load bler_and_th_mcs12.mat figure(4) plot(SNR,th,'-b*'),grid on hold on load bler_and_th_mcs13.mat figure(4) plot(SNR,th,'-k*'),grid on hold on load bler_and_th_mcs14.mat figure(4) plot(SNR,th,'-m+'),grid on hold on legend('MCS10','MCS11','MCS12','MCS13','MCS14') xlabel('SNR [dB]') ylabel('频谱效率') title('频谱效率曲线')